// Copyright (c) Appeon. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

namespace SnapObjects.Data
{
    internal class RawElement : SqlElement
    {
        public RawElement(string rawString, string name) : base(name)
        {
            this.Raw = rawString;
        }

        public string Raw { get; }
        public override SqlElementType ElementType => SqlElementType.RawString;

        public override SqlElement Clone()
        {
            return new RawElement(this.Raw, this.ElementName);
        }
    }
}
